package com.simon.october.service;

import com.simon.october.dto.User;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

@RequestMapping("/refactor")
public interface UserService {

    @RequestMapping(value = "/hello4", method = RequestMethod.GET)
    public String hello(@RequestParam("name") String name);

    @RequestMapping(value = "/hello5", method = RequestMethod.POST)
    public User hello(@RequestBody User user);
}
